import { LAYOUT,newLAOUT } from "../attr-widget"

export interface BUTTON extends LAYOUT {
  label: string
}

export function newBUTTON(attr?: BUTTON): BUTTON {
  return Object.assign(
    newLAOUT(), 
    {
      label: ''
    }, 
    attr
  ) as BUTTON
}

export const STATUS_OPTIONS = [
  {value:'0',label:'隐藏'},
  {value:'1',label:'占位'},
  {value:'2',label:'禁用'},
  {value:'3',label:'可用'}
]